package com.supercube.wechat.service.impl;

import com.supercube.wechat.dao.LeaveMessageDao;
import com.supercube.wechat.domain.LeaveMessage;
import com.supercube.wechat.service.LeaveMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 留言Service实现类
 *
 * @author djzhao
 * @date 20/04/11 9:46
 * @email djzhao627@gmail.com
 */
@Service
public class LeaveMessageImpl implements LeaveMessageService {
    @Autowired
    private LeaveMessageDao leaveMessageDao;

    @Override
    public boolean submitMessage(LeaveMessage message) {
        return leaveMessageDao.submitMessage(message) > 0;
    }
}
